<?php
	$requri = substr( $this->server['PHP_SELF'], 1 );
	$index_bg = $site_bg = $site_list_bg = $login_bg = $cate_bg = $info_bg = $password_bg = $logout_bg = '';

	switch( $requri )
	{
		case 'index.php':
			$index_bg = 'id="focusbg"';
			break;

		case 'site.php':
			$site_bg = 'id="focusbg"';
			break;

		case 'site_list.php':
			$site_list_bg = 'id="focusbg"';
			break;

		case 'login.php':
			$login_bg = 'id="focusbg"';
			break;

		case 'cate_list.php':
			$cate_bg = 'id="focusbg"';
			break;

		case 'info.php':
			$info_bg = 'id="focusbg"';
			break;

		case 'password.php':
			$password_bg = 'id="focusbg"';
			break;

		case 'logout.php':
			$logout_bg = 'id="focusbg"';
			break;

		default:
	}
?>
<div style="width:600px;margin:0px 0px 0px auto;text-align:right;padding-top:10px;"><a href="index.php" <?php echo $index_bg; ?>><?php echo $this->_lang['home']; ?></a> | <a href="site.php" <?php echo $site_bg; ?>><?php echo $this->_lang['promoted_site']; ?></a> | <?php if( ! isset($this->session['user_id']) ){ ?><a href="login.php"><?php echo $this->_lang['register']; ?></a> | <a href="login.php" <?php echo $login_bg; ?>><?php echo $this->_lang['login']; ?></a>  <?php }else{ ?><a href="site_list.php" <?php echo $site_list_bg; ?>><?php echo $this->_lang['site_management']; ?></a>  | <?php if( isset($_SESSION['user_id']) && $_SESSION['user_id'] == 1 ){ ?><a href="cate_list.php" <?php echo $cate_bg; ?>><?php echo $this->_lang['site_cate']; ?></a>  |<?php } ?> <a href="info.php" <?php echo $info_bg; ?>><?php echo $this->_lang['profile']; ?></a> | <a href="password.php" <?php echo $password_bg; ?>><?php echo $this->_lang['change_password']; ?></a> | <a href="logout.php" <?php echo $logout_bg; ?>><?php echo $this->_lang['logout']; ?></a><?php } ?> | <a href="/www.readvalue.info.url"><?php echo $this->_lang['save_to_desktop']; ?></a></div>